//package com.cande.loki.exercise.delaymq;
//
//import com.rabbitmq.client.Channel;
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.amqp.support.AmqpHeaders;
//import org.springframework.messaging.handler.annotation.Header;
//import org.springframework.stereotype.Service;
//
//import java.io.IOException;
//
//
///**
// * @auther ROCK CODER
// * @DATE 2022/5/15 12:35
// * @Description
// */
//@Service
//public class RabbitMQService {
//    @RabbitListener(queues = "wgf_queue")
//    public void receive(String payload, Channel channel,
//                        @Header(AmqpHeaders.DELIVERY_TAG) long tag) throws IOException {
//
//        System.out.println(payload);
//        channel.basicAck(tag, true);
//    }
//}
